home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20010306-20010921
/
000189_alweston@netcene.com.NOSPAM_Thu May 31 14:26:37 EDT 2001.msg
< prev
next >
Wrap
Text File
|
2001-09-20
|
4KB
|
98 lines
Article: 12497 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!newsfeed.mathworks.com!news.maxwell.syr.edu!newsfeed.stanford.edu!novia!sequencer.newscene.com!not-for-mail
From: Al Weston <alweston@netcene.com.NOSPAM>
Newsgroups: comp.protocols.kermit.misc
Subject: Receive Errors moving from Kermit 6 to Kermit 7
Date: 31 May 2001 13:08:08 -0500
Organization: H.O. Systems, Inc.
Lines: 81
Message-ID: <dstchtsrc3st7vt752ojtlivp0d7pb4fa1@4ax.com>
Reply-To: alweston@netcene.com.NOSPAM
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12497
I'm having a problem moving from Kermit 6 to Kermit 7. I have a script
that uses kermit to retrieve a file from a dialup server running
something called Data Express on a Tandem system. Getting more info on
the sending system is like pulling teeth. They don't seem to know what
they have.
The script was built for Kermit 6.0.192 running on SCO OpenServer
5.0.5, and it works just fine on this platform. But the same script
when run under Kermit 7.0.196 on AIX 4.3.3 fails every time with an
error message of "Refused, format" during the transfer. I can connect,
login, etc., just fine, but once the file transfer begins, I get the
same error every time. The file I'm retrieving is a plain text file.
It's the same kind of modem (Hayes Optima) on both systems, and the
serial port settings are the same (8N1, 19200).
I can't find anything that explains this error message, but after
digging through much of the Kermit documentation, it appears that are
many differences in Kermit 7's default behaviors. I'm guessing that
one of these differences is causing me problems. If that's the case,
then I need to understand how to make Kermit 7 behave like Kermit 6.
Here's what the script looks like:
;
; define \%u stuff deleted...
define \%s 20 ; Time for pause between redials
define \%n 1234567 ; Phone number
set port /dev/tty1 ; Communications port
set modem hayes-high-speed ; Modem type
set modem command init-string at\n0%c0\13
set exit warning off
set prefixing all
set terminal autodownload off
set terminal apc off
set file type binary ; File transfer mode must be binary
set send packet-length 94
set receive packet-length 500
set block-check 3
set buffers 280000 280000
set window 4
set input timeout quit ; (to keep the script program short)
set receive timeout 20
set count 3 ; Try up to 3 times
goto nomsg ; Skip message the first time
:LOOP ; Come here to redial
hangup ; Give the phone line a rest
echo CONNECTION BROKEN.
echo Pausing for \%s seconds...
sleep \%s
Echo redialing...
:NOMSG
dial \%n ; Dial the phone number
if failure goto AGAIN ; Keep trying
input 20 LOGDX: ; Get First name prompt
output \%u\13 ; Send Login Stream
kermit -r ; kermit -r(ecieve) on remote system
if success goto DONE ; = file is completely transferred
else goto FAILED
:AGAIN
if count goto loop ; Otherwise, try again.
Stop 1 Too many tries. ; Too many tries, give up.
:FAILED
echo File not transferred, try again.
pause 6
hangup
Exit
:DONE
echo File transferred OK ; Success, give message
pause 5 ; Give it time...
hangup ; Hang up
Exit